// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_WORKGROUP
// * CreateDate    : 2014-06-05 18:30:23
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:23
// * LastChanger   : 2014-06-05 18:30:23
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class ProdWorkgroupEntity : EntityBase
    {
        public ProdWorkgroupTable TableSchema
        {
            get
            {
                return ProdWorkgroupTable.Current;
            }
		}
		
		public ProdWorkgroupEntity()
        {

        }
		
		public ProdWorkgroupEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["Id"]));
			this.WorkgroupNo = Convert.ToString(CommonFunctions.ToObject(dr["WorkGroup_No"]));
			this.WorkgroupName = Convert.ToString(CommonFunctions.ToObject(dr["WorkGroup_Name"]));
			this.StationType = Convert.ToString(CommonFunctions.ToObject(dr["Station_Type"]));
			this.AssetCode = Convert.ToString(CommonFunctions.ToObject(dr["Asset_Code"]));
			this.UserNo = Convert.ToString(CommonFunctions.ToObject(dr["User_No"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.UpdatedBy = Convert.ToString(CommonFunctions.ToObject(dr["UPDATED_BY"]));
			this.UpdatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["UPDATED_DATE"]));
			this.IsActive = Convert.ToInt32(CommonFunctions.ToObject(dr["IS_ACTIVE"]));
			this.SkillExp = Convert.ToString(CommonFunctions.ToObject(dr["skill_exp"]));
        }
		
		public ProdWorkgroupEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["Id"]));
			this.WorkgroupNo = Convert.ToString(CommonFunctions.ToObject(dr["WorkGroup_No"]));
			this.WorkgroupName = Convert.ToString(CommonFunctions.ToObject(dr["WorkGroup_Name"]));
			this.StationType = Convert.ToString(CommonFunctions.ToObject(dr["Station_Type"]));
			this.AssetCode = Convert.ToString(CommonFunctions.ToObject(dr["Asset_Code"]));
			this.UserNo = Convert.ToString(CommonFunctions.ToObject(dr["User_No"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.UpdatedBy = Convert.ToString(CommonFunctions.ToObject(dr["UPDATED_BY"]));
			this.UpdatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["UPDATED_DATE"]));
			this.IsActive = Convert.ToInt32(CommonFunctions.ToObject(dr["IS_ACTIVE"]));
			this.SkillExp = Convert.ToString(CommonFunctions.ToObject(dr["skill_exp"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdWorkgroupTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(ProdWorkgroupTable.C_Id)); }
            set { SetData(ProdWorkgroupTable.C_Id, value); }
        }
		
        [DataMember]
        public string WorkgroupNo
        {
            get { return Convert.ToString(GetData(ProdWorkgroupTable.C_WorkGroup_No)); }
            set { SetData(ProdWorkgroupTable.C_WorkGroup_No, value); }
        }
		
        [DataMember]
        public string WorkgroupName
        {
            get { return Convert.ToString(GetData(ProdWorkgroupTable.C_WorkGroup_Name)); }
            set { SetData(ProdWorkgroupTable.C_WorkGroup_Name, value); }
        }
		
        [DataMember]
        public string StationType
        {
            get { return Convert.ToString(GetData(ProdWorkgroupTable.C_Station_Type)); }
            set { SetData(ProdWorkgroupTable.C_Station_Type, value); }
        }
		
        [DataMember]
        public string AssetCode
        {
            get { return Convert.ToString(GetData(ProdWorkgroupTable.C_Asset_Code)); }
            set { SetData(ProdWorkgroupTable.C_Asset_Code, value); }
        }
		
        [DataMember]
        public string UserNo
        {
            get { return Convert.ToString(GetData(ProdWorkgroupTable.C_User_No)); }
            set { SetData(ProdWorkgroupTable.C_User_No, value); }
        }
		
        [DataMember]
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(ProdWorkgroupTable.C_CREATED_BY)); }
            set { SetData(ProdWorkgroupTable.C_CREATED_BY, value); }
        }
		
        [DataMember]
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(ProdWorkgroupTable.C_CREATED_DATE)); }
            set { SetData(ProdWorkgroupTable.C_CREATED_DATE, value); }
        }
		
        [DataMember]
        public string UpdatedBy
        {
            get { return Convert.ToString(GetData(ProdWorkgroupTable.C_UPDATED_BY)); }
            set { SetData(ProdWorkgroupTable.C_UPDATED_BY, value); }
        }
		
        [DataMember]
        public DateTime UpdatedDate
        {
            get { return Convert.ToDateTime(GetData(ProdWorkgroupTable.C_UPDATED_DATE)); }
            set { SetData(ProdWorkgroupTable.C_UPDATED_DATE, value); }
        }
		
        [DataMember]
        public int IsActive
        {
            get { return Convert.ToInt32(GetData(ProdWorkgroupTable.C_IS_ACTIVE)); }
            set { SetData(ProdWorkgroupTable.C_IS_ACTIVE, value); }
        }
		
        [DataMember]
        public string SkillExp
        {
            get { return Convert.ToString(GetData(ProdWorkgroupTable.C_skill_exp)); }
            set { SetData(ProdWorkgroupTable.C_skill_exp, value); }
        }
		
		#endregion
	}
	
	
}	

